import { Injectable } from "@nestjs/common";
import { Cron, CronExpression, Interval } from "@nestjs/schedule";
import ILogger from "@/services/logger.service";
import IGlobal from "@/services/global.service";
import { DbService } from "@/db/db.service";
import { concatMap, defer, from, map, of } from "rxjs";
import axios from "axios";
import * as moment from "moment";
import IHelper from "@/services/helper.service";
import { AuthService } from "../auth/auth.service";

@Injectable()
export class ScheduleService {
  constructor(private readonly dbService: DbService) {}

  @Cron(CronExpression.EVERY_3_HOURS)
  exampleHandler() {
    ILogger.info(`exampleHandler triggered.`);
  }
}
